

import request from "@/service/axios/index";

/**@description 相关API */
const fileApi = {
    // 查询列表
    getFileList: (data) => {
        return request.post({ url: '/system/masterial/list', data })
    },
    // 获取详情
    getFile: (id) => {
        return request.get({ url: '/system/file/get?id=' + id })
    },
    // 新增
    createFile: (data) => {
        return request.post({ url: '/system/file/create', data })
    },
    // 删除
    deleteFile: (id) => {
        return request.delete({ url: '/system/file/delete?id=' + id })
    }
}
export default fileApi;